Skip to content

Conversation

pawel-dabro
Copy link

This solves #42 by adding minimal support for JDK 9 and later versions.
Issues addressed are:

  • lack of tools.jar since JDK 9 (replaced by adding jdk.attach module)
  • lack of javah since JDK 10 (now handled by javac, so no longer required)

message("Java development tools found.")
else()
message(FATAL_ERROR "Java development tools not found.")
endif()
include(UseJava)

set(CMAKE_JAVA_INCLUDE_PATH ${JAVA_INCLUDE_PATH}/../lib/tools.jar)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed then?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, if running Java 8 or earlier. Does not hurt with newer, just references a non-existing file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants